package org.example.Spring.Bean;

public class Bean2Factory {
    //使用Bean2Factory类的工厂创建Bean2实例
    public Bean2Factory(){
        System.out.println("这是Bean2Factory");
    }
    public static Bean2 createBean2(){
        return new Bean2();
    }
}
